export const SEARCH_PARAMS = [
  { key: 'name', tag: 'a-input', conf: { label: '表名', placeholder: '请输入表名' } },
  { key: 'nameZh', tag: 'a-input', conf: { label: '中文名', placeholder: '请输入中文名' } },
  { key: 'comment', tag: 'a-input', conf: { label: '描述', placeholder: '请输入描述' } },
];
export const SEARCH_PARAMS2 = [
  { key: 'name', tag: 'a-input', conf: { label: '字段名', placeholder: '请输入字段名' } },
  { key: 'nameZh', tag: 'a-input', conf: { label: '中文名', placeholder: '请输入中文名' } },
  { key: 'comment', tag: 'a-input', conf: { label: '注释', placeholder: '请输入注释' } },
];

export const CUSTOM_BTN = [
  { name: '新增', code: 'add' },
  { name: '生成', code: 'generate' },
  { name: '删除', code: 'delete' },
];

export const CUSTOM_BTN2 = [
  { name: '新增', code: 'add2' },
  { name: '删除', code: 'delete2' },
];

export const RULES = {
  name: [{ required: true, message: '表名不能为空', trigger: ['change', 'blur'] }],
  nameZh: [{ required: true, message: '中文名不能为空', trigger: ['change', 'blur'] }],
  comment: [{ required: true, message: '描述不能为空', trigger: ['change', 'blur'] }],
  dataSource: [{ required: true, message: '数据源不能为空', trigger: ['change', 'blur'] }],
};

export const RULES2 = {
  name: [{ required: true, message: '表名不能为空', trigger: ['change', 'blur'] }],
  nameZh: [{ required: true, message: '中文名不能为空', trigger: ['change', 'blur'] }],
  comment: [{ required: true, message: '注释不能为空', trigger: ['change', 'blur'] }],
  type: [{ required: true, message: '类型不能为空', trigger: ['change', 'blur'] }],
  length: [{ required: false, message: '长度不能为空', trigger: ['change', 'blur'] }],
};

export const RULES3 = {
  dataSource: [{ required: true, message: '数据源不能为空', trigger: ['change', 'blur'] }],
  name: [{ required: true, message: '表名不能为空', trigger: ['change', 'blur'] }],
};
export const SYSTEM_FIELDS = [
  'id',
  'rowid',
  'created_by',
  'createdby',
  'creation_date',
  'creationdate',
  'last_updated_by',
  'lastupdatedby',
  'last_update_date',
  'lastupdatedate',
  'object_version_number',
  'objectversionnumber',
  'form_id',
  'formid',
  'document_id',
  'documentid',
  'process_id',
  'processid',
];
